/**
 * 
 */
package com.android.calldelay.receiver;

import java.lang.reflect.Method;

import com.android.calldelay.AppInfo;
import com.android.internal.telephony.ITelephony;
import com.android.calldelay.R.color;
import com.android.calldelay.services.CallDisconnectService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.RemoteException;
import android.telephony.TelephonyManager;
import android.util.Log;
import android.widget.Toast;

/**
 * @author INVEERA
 *
 */
public class OnCallDisconnectReceave extends BroadcastReceiver {

	private static final String LOG_TAG = "OnCallDisconnectReceave";
	private ITelephony telephonyService;
	private Context context;

	/* (non-Javadoc)
	 * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
	 */
	@Override
	public void onReceive(final Context context, Intent intent) {
		//	Toast.makeText(context, "Disconnected", Toast.LENGTH_SHORT).show();

		this.context = context ;
		Intent serviceIntent = new Intent(context, CallDisconnectService.class);
		context.startService(serviceIntent);
		  
	}
	private void showToast(String msg) {
		Toast.makeText(context,msg, Toast.LENGTH_SHORT).show();

	}


}
